#ifndef __baker_Triangle_h__
#define __baker_Triangle_h__

#include "Prerequire.h"
#include "Vector.h"

namespace baker
{
    /** A triangle
    */
    struct Triangle
    {
        /** The 3 vertices that defines the Triangle. (in clockwise)
        */
        Vec3 v[3];

        /** Construct a Triangle from 3 vertices
        */
        Triangle( const Vec3 & v0
                , const Vec3 & v1
                , const Vec3 & v2
                );

        /** Get the normal n, of the Triangle,
            such that n = ( v1 - v0 ) x ( v2 - v0 )
        */
        Vec3 getNormal() const;
    };
}

#endif  // __baker_Triangle_h__
